package com.dkd.manage.task.allocator.model;

import lombok.Data;

@Data
public class AlgorithmScores {
    private double geneticAlgorithmScore = 5.0;
    private double particleSwarmScore = 5.0;
    private double neuralNetworkScore = 5.0;
    private double fuzzyLogicScore = 5.0;
    private double antColonyScore = 5.0;
    private double simulatedAnnealingScore = 5.0;

    public double getWeightedScore(AlgorithmWeights weights) {
        return weights.getGeneticWeight() * geneticAlgorithmScore +
                weights.getPsoWeight() * particleSwarmScore +
                weights.getNnWeight() * neuralNetworkScore +
                weights.getFuzzyWeight() * fuzzyLogicScore +
                weights.getAntWeight() * antColonyScore;
    }
}